#include "DefGU.h"
#include "opcodes.h"

#ifndef NET_H
#define NET_H

class Network
{
	public:
		Network(Graph* gu);
		~Network();
		int netDialog();
		bool Connect();
		void Disconnect();
		void SendData(Opcode opcode,char *cmd);

		int sock;

	private:
		void Encode(char *msg);
		void Decode();
		Graph* graph;
};

#endif